FROM openjdk:8
ARG JAR_FILE
COPY ${JAR_FILE} eureka.jar
# 注意每个项目公开的端口不一样
EXPOSE 30000
ENTRYPOINT ["java","-jar","/eureka.jar"]